package com.luyuan.crm.product.service;

import java.io.Serializable;
import java.util.List;

import org.hibernate.criterion.Order;

import com.luyuan.crm.product.model.ProductType;
import com.ruijie.foundation.annotation.DomainService;
import com.ruijie.foundation.query.Page;
import com.ruijie.foundation.query.criteria.CriteriaTemplate;
import com.ruijie.foundation.service.Repository;

@DomainService
public interface ProductTypeService extends Repository<ProductType> {

    /*
     * 分页查询
     */
    public Page pagedQuery(CriteriaTemplate criteria, int pageNo, int pageSize, List<Order> orders);

    /*
     * 根据ID获取产品
     */
    public ProductType getProductTypeById(Serializable id);

    /*
     * 更新产品信息
     */
    public void updateProductType(ProductType product);

    /*
     * 新增产品信息
     */
    public void addProductTypeModel(ProductType product);

    /*
     * 根据id删除产品
     */
    public void deleteProductTypeById(Serializable id);

    /*
     * 批量删除
     */
    public void batchDeleteProductType(Serializable[] ids);

}
